package com.ugtss.busniess.mapper;

import com.ugtss.busniess.domain.DataTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;
import java.util.Map;

@Mapper
public interface DatabaseMapper {
    List<String> getTableName();

    Map<String,String> getTableCreateSql(@Param("tableName") String tableName);

    List<Map<String, Object>> getTableValue(@Param("tableName")String tableName);

    void dropTable(@Param("tableName") String table);
    void createTable(@Param("createSQL")String createTable);

    void insert(@Param("tableName")String table, @Param("map")Map<String, Object> value);

    void setKey(@Param("i") int i);
}
